
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
	<body class="pear-container">
		<div class="layui-card">
			<div class="layui-card-body">
				<form class="layui-form layui-form-pane" action="">
					<div class="layui-form-item">
                           
               <div class="layui-form-item layui-inline">
                   <label class="layui-form-label">品名</label>
                   <div class="layui-input-inline">
                       <input type="text" name="title" placeholder="" class="layui-input">
                   </div>
               </div>   
               <div class="layui-form-item layui-inline">
                   <label class="layui-form-label">产品标题</label>
                   <div class="layui-input-inline">
                       <input type="text" name="subject" placeholder="" class="layui-input">
                   </div>
               </div>   
               <div class="layui-form-item layui-inline">
                   <label class="layui-form-label">编号</label>
                   <div class="layui-input-inline">
                       <input type="text" name="number" placeholder="" class="layui-input">
                   </div>
               </div>   
               <div class="layui-form-item layui-inline">
                   <label class="layui-form-label">供应编号</label>
                   <div class="layui-input-inline">
                       <input type="text" name="onumber" placeholder="" class="layui-input">
                   </div>
               </div>
                        <div class="layui-form-item layui-inline">
                       <button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="query">
                           <i class="layui-icon layui-icon-search"></i>
                           查询
                       </button>
                       <button type="reset" class="pear-btn pear-btn-md">
                           <i class="layui-icon layui-icon-refresh"></i>
                           重置
                       </button>
                       </div>
                    </div>
				</form>
			</div>
		</div>
		<div class="layui-card">
			<div class="layui-card-body">
				<table id="dataTable" lay-filter="dataTable"></table>
			</div>
		</div>
	    <script type="text/html" id="toolbar">
			<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="batchRecovery">
		        <i class="layui-icon layui-icon-refresh"></i>
		        恢复数据
			</button>
		    <button class="pear-btn pear-btn-danger pear-btn-md" lay-event="batchRemove2">
		        <i class="layui-icon layui-icon-delete"></i>
		        彻底删除
		    </button>
		</script>
        <script>
        layui.use(['jquery','common','mycomm'], function() {
            let $ = layui.jquery;
			let common = layui.common;
			let mycomm = layui.mycomm;
            let MODULE_PATH = "{$MODULE_PATH}";
            
            let cols = [
                [{
                    type: 'checkbox',
            		fixed: 'left',
            	   }, {
            	     field: "number",
            		 fixed: 'left',
            	     title: "编号",
            	  	 width: 100,
            	  	 sort:	true,
            	     unresize: "true",
            	     align: "center",
            	   }, {
            	      field: "id",
            	      title: "ID",
            		  width: 70,
            	   	  sort:	true,
            	      unresize: "true",
            	      align: "center",
                   }, {
                       field: "title",
                       title: "品名",
                       unresize: "true",
                       align: "left",
            	   }, {
            	       field: "breadth",
            	       title: "幅宽",
            		   width: 80,
            		   templet: "<div>{{d.breadth}}cm</div>",
            	       unresize: "true",
            	       align: "center"
            	   }, {
            	       field: "square",
            	       title: "克重",
            		   width: 100,
            		   templet: "<div>{{d.square}}g</div>",
            	       unresize: "true",
            	       align: "center"
                   }, {
                       field: "price1",
                       title: "杂零售价",
            		   width: 100,
            		   edit: 'text',
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "price4",
                       title: "米价",
            		   width: 80,
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "ckprice1",
                       title: "参考价",
            		   width: 80,
            		   edit: 'text',
                       unresize: "true",
                       align: "center"
            		   
                   }, {
                       field: "tube",
                       title: "纸管+空差",
            		   width: 100,
            		   templet: "<div>{{d.tube}} + {{d.emptykg}}</div>",
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "sort",
                       title: "排序",
            		   width: 90,
            		   sort:	true,
            		   edit: 'text',
                       unresize: "true",
                       align: "center"
            	   }, {
            	       field: "space1",
            	       title: "渠道价",
            		   width: 80,
            		   edit: 'text',
            	       unresize: "true",
            	       align: "center"
                   }
                ]
            ]

			mycomm.tableRecycle('{$controller_title}',MODULE_PATH,cols);
			
        })
    </script>
	{$LOAD_STYLE.bottom|raw}
	</body>
</html>
